import { IsString, IsNotEmpty, IsEnum, IsOptional, Length } from 'class-validator';

export enum SolveType {
  SOLVED = 'SOLVED',
  IGNORE = 'IGNORE',
  UNSOLVED = 'UNSOLVED',
}

export class CreateFeedbackDto {
  @IsString()
  @IsNotEmpty()
  @IsEnum(['BUG', 'SUGGESTION', 'OTHER'])
  type: 'BUG' | 'SUGGESTION' | 'OTHER';

  @IsString()
  @IsNotEmpty()
  @Length(1, 300)
  content: string;
}
